package kuonjisai.swing.component;

import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import javax.swing.JScrollPane;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class J26_SungJucShowList  extends  JDialog{
// 640 480
	// JTable : 번호, 이름, 국어, 영어, 수학
	// 행을 선택하고 더블클릭 - 총점, 평균, 학점 출력
	// 정보창을 띄울시 jlabel로만
		public J26_SungJucShowList( JFrame f ) {		
		super(f );
		setBounds(300, 300, 640, 480);
		setModalityType(DEFAULT_MODALITY_TYPE);
	
		JPanel panel = new JPanel();
		getContentPane().add(panel, BorderLayout.SOUTH);
		
		JButton button = new JButton("나가기");
		button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			setVisible(false);
			dispose();
				
			}
		});
		panel.add(button);
		
		JScrollPane scrollPane = new JScrollPane();
		getContentPane().add(scrollPane, BorderLayout.CENTER);
		
		
		
		setVisible(true);	
			
			
			
			
		}
	
		
		
		
		
}// class
